#include <stdio.h>
#define N 6
int main(void)
{
    int b[] = {1,2,3,4,5,6};
    int i,temp;
    int *ptr_start = b;
    int *ptr_end = &b[5];
    for (i = 0;i < N/2;i++)
    {
        temp = *ptr_start; 
        *ptr_start = *ptr_end;
        *ptr_end = temp;
        ptr_start++;
       	ptr_end--;
    } 	    
    for (i = 0;i < 6;i++)
    { 
        printf("b[%d]=%d\n",i,b[i]);
    }	    
    return 0;
}	
